<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			//获取url
			//var u=window.location.href;
			//alert(u);
			
			//设置url
			function setUrl(){
				location.href="../window/a.html";
			}
			
		</script>
	</head>
	
	<body>
		<input type="button" value="设置url" onclick="setUrl()">
	</body>
</html>
